#ifndef SAVELOGTHREAD_H
#define SAVELOGTHREAD_H

#include <QThread>
#include <QFile>
#include <QIODevice>
#include <QDebug>
#include <QDataStream>

class SaveLogThread : public QThread
{
    Q_OBJECT
public:
    explicit SaveLogThread(QObject *parent = nullptr);
    ~SaveLogThread();
    void run();                                                                    // 线程处理函数
    void setSave(QString filePath, QVector<QByteArray*>* pReceivedData);


signals:
    void savefinished();

private:
    QString filePath;
    QVector<QByteArray*>* pReceivedData;

};

#endif // SAVELOGTHREAD_H
